<?php

namespace App\Modules\Good\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class GoodSpec
 * @package App\Modules\Good\Models
 * @property integer $good_id
 * @property integer $attr_key
 * @property array $param
 * @property integer $price
 * @property integer $stock
 * @property integer $sales_volume
 * @property integer $level1_rebate
 * @property integer $level2_rebate
 * @property integer $level3_rebate
 * @property integer $level_2_3_rebate
 * @property integer $prepay_price
 */
class GoodSpec extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'good_id',
        'attr_key',
        'param',
        'price',
        'prepay_price',
        'stock',
        'sales_volume',
        'level1_rebate',
        'level2_rebate',
        'level3_rebate',
        'level4_rebate',
        'level_2_3_rebate',
        'display_price'
    ];

    protected $casts = [
        'param' => 'array',
    ];
}
